package com.zj.study.utils.validation.validator.min;


import com.zj.study.utils.validation.annotation.ValidateSupport;
import com.zj.study.utils.validation.annotation.constraint.Min;
import org.springframework.lang.NonNull;

/**
 * @author 谭耀飞
 * @since 2020.11.0
 */
@ValidateSupport(Float.class)
public class MinValidatorForFloat extends AbstractMinValidator<Float> {

  @Override
  public boolean compare(@NonNull Min min, @NonNull Float value) {
    return value >= min.value();
  }

}
